<?php $website_url = Configure::read('Website.url'); ?>
<div class="middle_r1">
    <?php
    if (isset($best_selling_products) and ($best_selling_products)) {
        ?>
        <div class="middle_r1_top">
            <h1>Best Selling</h1>
        </div>
        <div class="middle_r1_down">
            <?php
            foreach ($best_selling_products as $product) {
                ?>
                <div class="middle_r1_dow1"> 
                <?php echo $html->link($html->image('Product/' . $product['Product']['img'], array('width' => '133', 'height' => '123')), array('controller' => 'products', 'action' => 'product', $product['Product']['slug']), array('escape' => false)); ?>
                    <p><?php echo $html->link(substr($product['Product']['name'], 0, 10), array('controller' => 'products', 'action' => 'product', $product['Product']['slug']), array('escape' => false)); ?> <span>$ <?php echo $product['Product']['MasterProduct']['price']; ?></span> </p>
                </div>

        <?php
    }
    ?>
        </div>
            <?php
        }
        ?>



    <div class="middle_r1_top">
        <h1>This Week Top Rated products</h1>
    </div>
    <div class="middle_r1_down">
        <div class="middle_r1_dow1"> <img src="<?php echo $website_url; ?>img/img.png" width="133" height="123" alt="" />
            <p> Quisquam <span>10.99 &euro;</span> </p>
        </div>
        <div class="middle_r1_dow1"> <img src="<?php echo $website_url; ?>img/img2.png" width="133" height="123" alt="" />
            <p> Squam <span>45.89 &euro;</span> </p>
        </div>
        <div class="middle_r1_dow1"> <img src="<?php echo $website_url; ?>img/img3.png" width="133" height="123" alt="" />
            <p> Skoiquam <span>20.99 &euro;</span> </p>
        </div>
        <div class="middle_r1_dow1"> <img src="<?php echo $website_url; ?>img/img1.png" width="133" height="123" alt="" />
            <p> Skoiquam <span>20.99 &euro;</span> </p>
        </div>
        <div class="middle_r1_dow1"> <img src="<?php echo $website_url; ?>img/img2.png" width="133" height="123" alt="" />
            <p> Squam <span>45.89 &euro;</span> </p>
        </div>
    </div>
</div>
